<?php

namespace app\jxcshop\controller;

class Index
{
    public function index(){
        header("HTTP/1.1 404 Not Found");
        header("Status: 404 Not Found");
        exit;
    }
    public function test(){
        for($i=1;$i<=10;$i++) {
            asynRun('mainadmin/AsynTestModel/asynRunTest', ['order_id' => $i]);
        }
    }
    public function testa(){
        var_dump(2322);exit;
        $AsynTestModel = new \app\mainadmin\model\AsynTestModel();
        $t1 = microtime(true);
        for($i=1;$i<=100;$i++) {
            $AsynTestModel->asynRunTesta(['id'=>$i]);
        }
        $t2 = microtime(true);
        echo ($t2-$t1)*1000;
    }
    public function testb(){
        for($i=1;$i<=10;$i++) {
            asynRun('mainadmin/AsynTestModel/asynRunTestC', ['id' => $i,'num'=>10]);
        }

    }
}
